package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.HashMap;

/**
 * 彩民抽奖信息库对象 sn_user_lib
 *
 * @author ruoyi
 * @date 2022-12-26
 */
public class SnUserLib extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 抽奖期号
     */
    @Excel(name = "抽奖期号")
    private String termNo;

    /**
     * 彩民姓名
     */
    @Excel(name = "彩民姓名")
    private String userName;

    /**
     * 彩民身份证号
     */
    @Excel(name = "彩民身份证号")
    private String idCard;

    /**
     * 彩民手机号码
     */
    @Excel(name = "彩民手机号码")
    private String mobile;

    /**
     * 是否中奖0-no 1-yes
     */
    private Integer lucky;


    /**
     * 中奖顺序
     */
    private Integer seq;
    /**
     * 中奖时间
     */
    @Excel(name = "中奖时间")
    private String awardTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTermNo() {
        return termNo;
    }

    public void setTermNo(String termNo) {
        this.termNo = termNo;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getLucky() {
        return lucky;
    }

    public void setLucky(Integer lucky) {
        this.lucky = lucky;
    }

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }

    public String getAwardTime() {
        return awardTime;
    }

    public void setAwardTime(String awardTime) {
        this.awardTime = awardTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("userName", getUserName())
                .append("idCard", getIdCard())
                .append("mobile", getMobile())
                .toString();
    }

    @Override
    public boolean equals(Object obj) {
        SnUserLib user = (SnUserLib) obj;
        return this.getMobile().equals(user.getMobile())
                && this.getUserName().equals(user.getUserName())
                && this.getIdCard().equals(user.getIdCard());
    }
}
